﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Core;
using System.Web.UI.HtmlControls;

namespace Yuanlin.Business
{
    public class ZiCaiInfoControl 
    {
        public static string TitleStr(int kind, string tradeType)
        {
            string str = "";
            if (kind == 1)
            {
                if (tradeType == "0")
                {
                    str = ResourceManager.GetString("System_Applications_Yuanlin_CompanyMachineChuShou", "ControlPanelResources.xml");
                }
                else if (tradeType == "1")
                {
                    str = ResourceManager.GetString("System_Applications_Yuanlin_CompanyMachineQiuGou", "ControlPanelResources.xml");
                }
            }
            else if (kind == 2)
            {
                if (tradeType == "0")
                {
                    str = ResourceManager.GetString("System_Applications_Yuanlin_CompanyFacilityChuShou", "ControlPanelResources.xml");
                }
                else if (tradeType == "1")
                {
                    str = ResourceManager.GetString("System_Applications_Yuanlin_CompanyFacilityQiuGou", "ControlPanelResources.xml");
                }
            }
            else if (kind == 3)
            {
                if (tradeType == "0")
                {
                    str = ResourceManager.GetString("System_Applications_Yuanlin_CompanyAgriculturalChuShou", "ControlPanelResources.xml");
                }
                else if (tradeType == "1")
                {
                    str = ResourceManager.GetString("System_Applications_Yuanlin_CompanyAgriculturalQiuGou", "ControlPanelResources.xml");
                }
            }
            else if (kind == 4)
            {
                if (tradeType == "0")
                {
                    str = ResourceManager.GetString("System_Applications_Yuanlin_CompanyHuaFeiChuShou", "ControlPanelResources.xml");
                }
                else if (tradeType == "1")
                {
                    str = ResourceManager.GetString("System_Applications_Yuanlin_CompanyHuaFeiQiuGou", "ControlPanelResources.xml");
                }
            }
            else if (kind == 5)
            {
                if (tradeType == "0")
                {
                    str = ResourceManager.GetString("System_Applications_Yuanlin_CompanyMashChuShou", "ControlPanelResources.xml");
                }
                else if (tradeType == "1")
                {
                    str = ResourceManager.GetString("System_Applications_Yuanlin_CompanyMashQiuGou", "ControlPanelResources.xml");
                }
            }
            return str;
        }
    }
}